<style type="text/css">
    .bjui-pageHeader{
        font-size: 18px;
        font-weight: bold;
    }
    .form{
        padding: 15px;
    }
    .form dl {
        overflow: hidden;
        padding-top: 15px;
    }

    .form dt {
        color: #666;
        float: left;
        font-size: 14px;
        padding: 3px 0 0;
        width: 11%;
    }
    .form dd {
        float: left;
        line-height: 22px;
    }
    dd.desc {
        height: 30px;
        padding: 0 10px;
        width: 150px;
    }
</style>
<div class="bjui-pageContent">
        <table  class="table table-bordered table-hover table-striped table-top">
            <tr>
                <th>信息</th>
                <th width="40%">留言</th>
                <th width="30%">回复</th>
                <th>操作</th>
            </tr>
            <foreach name='vlist' item='v'>
            <tr>
                <td>
                编号：{$v.id}<br/>
                姓名：<if condition="$v['userid']"><a href="{$v.userid}" target="_blank">{$v.username}</a><else/>{$v.username}</if><br/>
                 来自：{$v.ip}<br/>
                 电话：{$v.tel}<br/>
                </td>
                <td>{$v.content|str2sub='100','1'}<br/>{$v.posttime|date='Y-m-d H:i:s', ###}</td>
                <td><if condition="$v['replytime']">{$v.reply}<br/>{$v.replytime|date='Y-m-d H:i:s', ###}</if></td>
                <td>
                    <a id="look" href="{:U('Guestbook/look',array('id' => $v['id']))}" data-toggle="dialog" data-id="Site-linkEdit" data-title="查看留言" data-width="560" data-height="400">查看</a> 
                    <a href="{:U('Guestbook/del',array('id' => $v['id']))}"  data-toggle="doajax" data-confirm-msg="确定要删除吗？" data-type="get">删除</a>
                </td>
            </tr>
            </foreach>
        </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>

        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="15">15</option>
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="100">100</option>
            </select>
        </div>
        <span>&nbsp;条，共 {$totalRows} 条</span>
    </div>

    <div class="pagination-box" data-toggle="pagination" data-total="{$totalRows}" data-page-size="15"
         data-page-current="{$nowPage}"></div>
</div>